package com.dimeina.vo;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author Michael
 * 商品分类表
 */
public class Category implements Serializable {

	private static final long serialVersionUID = 1L;

	// 构造方法
	public Category() {
	}

	public Category(String name, int pid, int depth, Timestamp createDate) {
		this.name = name;
		this.pid = pid;
		this.depth = depth;
		this.createDate = createDate;
	}

	// 编号 主键
	private int id;
	// 商品种类名称
	private String name;
	// 父级id
	private int pid;
	// 层级
	private int depth;
	// 创建时间
	private Timestamp createDate;

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getPid() {
		return pid;
	}
	public void setPid(int pid) {
		this.pid = pid;
	}
	public int getDepth() {
		return depth;
	}
	public void setDepth(int depth) {
		this.depth = depth;
	}
	public Timestamp getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
